#include <bits/stdc++.h>
using namespace std;

int n,r;
long long sum;
map<int,int>a;

int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	cin >> n;
	for(int i = 1;i <= n;i++)
	{
		cin >> r;
		a[r]++;
	}
	for(auto i : a)
	{
		int b = i.second;
		sum = max(0ll,sum - b);
		sum += b;
	}
	cout << sum;
	return 0;
}